import request from '../utils/request';
import qs from 'qs';
//模板模拟
export const fetchData = query => {
  return request({
      url: '',
      method: 'get',
      params: query
  });
};
// 添加救援任务
export const giveOut = query => {
  return request({
      url: '/vehicle/rescue/addRescue',
      method: 'post',
      params: query
  });
};

// 添加救援任务
export const record = query => {
  return request({
      url: '/vehicle/rescue/all',
      method: 'post',
      params: query
  });
};